﻿<!DOCTYPE html>
<html lang="cn">

    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- 以上三个meta标签必须放在最前 -->

        <!-- Bootstrap -->
        <link href="__CSS__/bootstrap.min.css" rel="stylesheet">

        <!--[if lt IE 9]>
    <script src="__JS__/html5shiv.min.js"></script>
    <script src="__JS__/respond.min.js"></script>
    <![endif]-->

        <title>《英雄联盟》官方论坛 - Powered by Discuz!</title>

        <link rel="stylesheet" type="text/css" href="__ICSS__/style_6c2b1db9_9_common.css">
        <link rel="stylesheet" type="text/css" href="__ICSS__/style_6c2b1db9_9_home_follow.css" />
        <script src="__JS__/jquery-1.8.3.min.js"></script>

        <style>
            .qt_tips_box {
                background: #f0fbff;
                border: 1px solid #7ea0cd;
                color: #7ea0cd;
                padding: 0 20px 0 10px;
                text-align: right;
                position: absolute;
            }
            
            .qt_tips_box a.qt_tips_close {
                color: #8aa8d2;
                position: absolute;
                right: 5px;
                top: 0;
                line-height: 21px;
            }
            
            .qt_tips_arrow {
                position: absolute;
                background: url(http://ossweb-img.qq.com/images/qtalk/app/discuz/arrow.png) no-repeat 0 0;
                width: 6px;
                height: 5px;
                line-height: 2000px;
                overflow: hidden;
                top: -5px;
                right: 5px;
            }
            
            body {
                background: url(__IMG__/index_bg.jpg) no-repeat center 0;
            }
            
            #hd .wp .hdc h2 img {
                display: none;
            }
            
            #hd .wp .hdc h2 a {
                display: block;
                width: 320px;
                height: 80px;
            }
            
            #hd h2 {
                padding: 0 0px 8px 0;
            }
            
            #dl {
                width: 80px;
                height: 70px;
                background: #C7CDCD;
                border-radius: 3px;
                border: 1px solid #A8A9A8;
                color: white;
                margin-right: 10px;
            }
            
            #xiao {
                width: 600px;
                height: 360px;
                background: white;
                position: fixed;
                top: 200px;
                left: 400px;
                z-index: 100;
                display: none;
                border: 5px solid #CCCCCC;
            }
            
            #tou {
                width: 590px;
                height: 50px;
                background: #F7F7F7;
                line-height: 50px;
                cursor: move;
            }
            
            #b {
                font-size: 20px;
                color: #337AB7;
                padding-left: 20px;
            }
            
            #guan {
                width: 35px;
                height: 35px;
                font-size: 35px;
                cursor: pointer;
                float: right;
            }
            
            #xia {
                width: 400px;
                height: 250px;
                border: 2px solid #EEEEEE;
                margin: 20px 0 0 95px;
            }
            
            #xia form {
                margin-top: 20px;
            }
            
            #zm {
                font-size: 20px;
                margin-left: 140px;
            }
            
            #tishi {
                color: red;
                margin-left: 140px;
            }
        </style>
    </head>

    <body>

        <div id="toptb" class="cl">
            <div class="wp">
                <div class="container">
                    <div class="row">
                        <div class="col-md-7">
                            <a class="" onclick="alert('请按Ctrl+D')">收藏本站</a>
                        </div>

                    </div>
                </div>
                <div id="hd">
                    <div class="wp">
                        <div class="hdc cl">
                            <div class="aaa" style="margin-top:20px;"></div>

                            <div class="container">
                                <div class="row">
                                    {if condition="$Request.session.user.name == ''"}
                                    <div class="col-md-3 col-md-offset-8">
                                        <a id="dl" class="btn" onclick="kai()">登录</a>
                                        <a href="<{:url('login/index')}>" id="dl" class="btn" target="_blank">注册</a>
                                    </div>
                                    {else}
                                    <div class="col-md-2 col-md-offset-7">
                                        <a href=""><span class="glyphicon glyphicon-user"></span></a>
                                        <a href="<{:url('user/index',array('id'=>$Request.session.user.id))}>" id="add"><{$Request.session.user.name}></a>
                                        <script>
                                        var add = document.getElementById('add');
                                        if (add.innerHTML.length > 3) {
                                            add.innerHTML = add.innerHTML.substr(0,3)+'...';
                                        }
                                        </script>
                                        <a href="<{:url('personal/index',array('id'=>$Request.session.user.id))}>">设置</a>
                                        <a href="<{:url('login/out')}>">退出</a>
                                        <br>
                                        
                                        <a href="">等级:<span>
                                            {if condition="$Request.session.user.type == 0"}普通会员
                                            {elseif condition="$Request.session.user.type == 1"}VIP会员
                                            {else}版主
                                            {/if}   
                                        </span></a>
                                    </div>
                                        <div class="col-md-2">
                                        {if condition="$Request.session.user.img == ''"}
                                            <img src="__UIMG__/u0.png" width="40%" style="margin-top:-10%;margin-right:50%;border-radius:5px">
                                        {else}
                                            <img src="__UIMG__/<{$Request.session.user.img}>" width="66px" height="66px;" style="margin-top:-10%">
                                        {/if}
                                        </div>
                                    {/if}
                                </div>
                            </div>
                            <div id="xiao">
                                <div id="tou">
                                    <b id="b">请登录</b>
                                    <b onclick="guan()" id="guan">×</b>
                                </div>
                                <div id="xia">
                                    <form action="" method="post" class="form-horizontal" id="form" onsubmit="return false">
                                        <div class="form-group">
                                            <p id="zm">账号密码登录</p>
                                            <b id="tishi"></b>
                                        </div>

                                        <div class="form-group">
                                            <label for="inputphone" class="col-sm-3 control-label">账号</label>
                                            <div class="col-sm-7">
                                                <input type="text" name="phone" class="form-control" id="inputphone" placeholder="请输入您的账号">

                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputPassword" class="col-sm-3 control-label">密码</label>
                                            <div class="col-sm-7">
                                                <input type="password" name="pass" class="form-control" id="inputPassword" placeholder="请输入您的密码">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-success" id="button" style="width:250px;">登录</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                            <script>
                                // 登录请求
                                button.onclick = function() {
                                        if(/^[1][34578][0-9]{9}$/.test(inputphone.value)) {
                                            if(inputPassword.value != "") {
                                                $(function(){
                                                    $.ajax({
                                                        type:'post',
                                                        url:"<{:url('login/dl')}>",
                                                        data:"phone="+inputphone.value+"&pass="+inputPassword.value,
                                                        dataType: 'json',
                                                        success:function(data){
                                                            if (data == 0) {
                                                                $("#tishi").html("账号或密码错误");
                                                            }else if (data == 2) {
                                                                $("#tishi").html("账号已经被冻结");
                                                            }else{
                                                                location.reload();
                                                            }
                                                        }
                                                    })
                                                    
                                                })
                                            } else {
                                                tishi.innerHTML = "密码不能为空";
                                            }
                                        } else {
                                            tishi.innerHTML = "账号格式错误";
                                        }
                                    }
                                    // 点击登录
                                function kai() {
                                    xiao.style.display = 'block';
                                }
                                //关闭登录
                                function guan() {
                                    xiao.style.display = 'none';
                                }
                                var tou = document.getElementById('tou');
                                var xiao = document.getElementById('xiao');
                                tou.onmousedown = function(en) {
                                    var en = en || window.event;
                                    // 算出鼠标相对于xiao盒子的距离
                                    var left = en.clientX - xiao.offsetLeft;
                                    var top = en.clientY - xiao.offsetTop;
                                    document.onmousemove = function(env) {
                                        var env = env || window.event;
                                        // 鼠标位置-鼠标相对于xiao盒子的距离 移动鼠标时 盒子的左上角就不会跟着鼠标
                                        var x = env.clientX - left;
                                        var y = env.clientY - top;
                                        if(x < 0) {
                                            x = 0;
                                        }
                                        if(y < 0) {
                                            y = 0;
                                        }
                                        if(x > 1038) {
                                            x = 1038;
                                        }
                                        if(y > 470) {
                                            y = 470;
                                        }
                                        xiao.style.top = y + 'px';
                                        xiao.style.left = x + 'px';
                                    }

                                }
                                document.onmouseup = function() {
                                    document.onmousemove = null;
                                }
                            </script>

                            <div class="fastlg cl">
                                <span id="return_ls" style="display:none"></span>
                                <div class="y pns">
                                </div>
                                <style>
                                    .y.pns {
                                        display: none
                                    }
                                    
                                    .ptlogin_simple {
                                        float: right
                                    }
                                    
                                    .ptlogin_simple button {
                                        width: 75px;
                                    }
                                    
                                    .scbar_txt {
                                        height: 40px;
                                    }
                                    .width{
                                        width:330px;
                                        border-left:1px solid #848484;
                                        border-top:1px solid #848484;
                                        padding-left:5px; 
                                    }
                                </style>
                            </div>

                        </div>
                        <div class="row" style="width:957px;margin-left:1px;">
                            <ul class="daohang">
                                <li style="border-radius: 4px;">
                                    <a href="<{:url('index/index')}>" title="BBS">论坛首页</a>
                                </li>
                                <li>
                                    <a href="http://lol.qq.com/main.shtml" target="_blank">官网首页</a>
                                </li>
                                <li>
                                    <a href="http://weibo.com/lol" target="_blank">官方微博</a>
                                </li>
                                <li>
                                    {if condition="$Request.session.user.type eq null "}
                                    <a class="" onclick="alert('请先登录')" style="cursor:pointer;">视频站</a>
                                    {else}
                                    <a href="<{:url('video/index')}>">视频站</a>
                                    {/if}
                                </li>
                                <li>
                                    {if condition="$Request.session.user.type eq null "}
                                    <a class="" onclick="alert('请先登录')" style="cursor:pointer;">积分商城</a>
                                    {elseif condition="$Request.session.user.type eq 0 "}
                                    <a class="" onclick="alert('请先兑换VIP会员')" style="cursor:pointer;">积分商城</a>
                                    {else/}
                                    <a href="<{:url('goods/index')}>">积分商城</a>
                                    {/if}
                                </li>
                            </ul>
                        </div>
                        <div id="mu" class="cl">
                        </div>
                        <div id="scbar" class="cl" style="background:#FBFCFE;border-radius: 5px;">
                            <form method="post" action="<{:url('search/index')}>" target="_blank">
                                <table cellspacing="0" cellpadding="0">
                                    <tbody>
                                        <tr>
                                            <td class="scbar_icon_td">
                                                <img src="__IMG__/sousuo.jpg" alt="">
                                                </td>
                                            <td>
                                                <input type="text" name="search" id="scbar_txt" value=""class=" xg1" placeholder="请输入搜索内容" style="height: 30px;border: 1px solid #9DB0C2;padding:10px;">
                                            </td>
                                            <td class="scbar_type_td"></td>
                                            <td class="scbar_btn_td">
                                                <button type="submit" style="background:#E5EDF2;height:30px;margin:-4px 0 0 -18px;border:1px solid #9DB0C2" name="searchsubmit" id="scbar_btn" sc="1" class="pn pnc" value="true"><strong class="xi2 xs2">搜索</strong></button>
                                            </td>
                                            <td class="scbar_hot_td">
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </form>
                        </div>
                        <ul id="scbar_type_menu" class="p_pop" style="display: none;">
                            <li>
                                <a href="" rel="forum" class="curtype">帖子</a>
                            </li>
                        </ul>
                    </div>
                </div>

            <div id="wp" class="wp">
                    <div id="pt" class="bm cl">
                        <a href=""><img src="__IMG__/fangzi.jpg"><em>»</em> 个人资料
                        </a><em>»</em><b><{$user.name}></b>
                    </div>

                </div>
            <div id="uhd">
                <div class="h cl">
                    <div class="icn avt">
                        <a href="">
                        {if condition="$user.img == ''"}
                        <img src="__UIMG__/u0.png" width="48px" height="48px;">
                        {else}
                        <img src="__UIMG__/<{$user.img}>" width="48px" height="48px;">
                        {/if}
                        </a>
                    </div>
                    <h2 class="mt"><{$user.name}></h2>
                    <p>
                        <a href="http://ypk.com<{:url('user/index',array('id'=>$user.userid))}>" class="xg1">http://ypk.com<{:url('user/index',array('id'=>$user.userid))}></a>
                    </p>
                </div>

                <ul class="tb cl" style="padding-left: 75px;">
                    <li>
                        <a href="<{:url('user/post',array('id'=>$user.userid))}>">主题</a>
                    </li>
                    <li class="a">
                        <a href="<{:url('user/index',array('id'=>$user.userid))}>">个人资料</a>
                    </li>
                    {if condition="$user.type eq 2"}
                        {if condition="$Request.session.user.id eq $user.userid"}
                        <li>
                            <a href="<{:url('user/control',array('id'=>$user.userid))}>">控制</a>
                        </li>
                        {/if}

                    {/if}
                </ul>
            </div>
            <div id="ct" class="ct1 wp cl">
                <div class="mn">
                    <!--[diy=diycontenttop]-->
                    <div id="diycontenttop" class="area"></div>
                    <!--[/diy]-->
                    <div class="bm bw0">
                        <div class="bm_c">
                            <div class="bm_c u_profile">

                                <div class="pbm mbm bbda cl">
                                    <h2 class="mbn"><{$user.name}><span class="xw0">(UID: <{$user.uid}>)</span></h2>
                                    <ul>
                                        <li><em class="xg1">情感经历&nbsp;:&nbsp;</em></li>
                                        <li>
                                            <textarea cols="180" disabled="disabled">&nbsp;&nbsp;<{$user.qinggan}></textarea>
                                        </li>
                                    </ul>
                                    <ul class="pf_l cl">
                                        <li><em>性别</em>
                                        {if condition="$user.sex == 0"}男
                                        {elseif condition="$user.sex == 1"}女
                                        {else}保密
                                        {/if} 
                                        </li>
                                        <li><em>生日</em>
                                        {if condition="$user.year neq ''"}
                                        <{$user.year}>-<{$user.month}>-<{$user.day}>
                                        {else}-
                                        {/if}
                                        </li>
                                    </ul>
                                </div>
                                <!-- {if condition="$user.type == 2"}
                                <div class="pbm mbm bbda cl">
                                    <h2 class="mbn">管理以下版块</h2>
                                    <a href="" target="_blank">广场区</a> &nbsp;
                                    <a href="" target="_blank">版主内版</a> &nbsp;
                                    <a href="" target="_blank">视频中心</a> &nbsp;
                                    <a href="" target="_blank">视频内容自荐区</a> &nbsp;
                                    <a href="" target="_blank">连载小说</a> &nbsp;
                                    <a href="" target="_blank">专题评论区</a> &nbsp;
                                    <a href="" target="_blank">预选位模式专区</a> &nbsp;
                                </div>
                                {/if} -->
                                <div class="pbm mbm bbda cl">
                                    <h2 class="mbn">活跃概况</h2>
                                    <ul>
                                        <li><b class="xg1">等级&nbsp;&nbsp;</b><span style="color:#FF6600"><b><font color="#FF6600">
                                            {if condition="$user.type == 0"}普通用户
                                            {elseif condition="$user.type == 1"}会员用户
                                            {else}版主
                                            {/if}
                                        </font></b></span> </li>
                                    </ul>
                                    <ul id="pbbs" class="pf_l">
                                        <li><em>注册时间</em><{$user.zctime}></li>
                                        <li><em>上次发帖时间</em>
                                        {if condition="$user.xxtime eq '' "}
                                        -
                                        {else}
                                        <{$user.xxtime}>
                                        {/if}
                                        </li>
                                        <li><em>所在时区</em>使用系统默认</li>
                                    </ul>
                                </div>
                                <div id="psts" class="cl">
                                    <h2 class="mbn">统计信息</h2>
                                    <ul class="pf_l">
                                        <li><em>主题数</em> <{$notenum}> </li>
                                        <li><em>积分</em><{$user.jifen}></li>
                                        <li><em>回帖数</em><{$talknum}> </li>
                                    </ul>
                                </div>
                            </div>
                            <!--[diy=diycontentbottom]-->
                            <div id="diycontentbottom" class="area"></div>
                            <!--[/diy]-->
                        </div>
                    </div>
                </div>
            </div>   

                <style>
                    .daohang {
                        height: 30px;
                        background: #2873C2;
                        margin: 0 auto;
                        border-radius: 4px;
                    }
                    
                    .daohang li {
                        float: left;
                        padding-left: 20px;
                        line-height: 30px;
                        padding-right: 20px;
                        display: inline-block;
                        border-radius: 4px;
                    }
                    
                    .daohang li a {
                        font-weight: 700;
                        color: white;
                    }
                </style>

                <div class="container">
                    <!--style="margin-left:230px;"-->
                    <div class="row">
                        <div class="col-md-10" style="height:10px;border-top:1px solid black;margin:10px 0 0 -10px;">
                        </div>
                    </div>
                    <div class="row">
                        <p class="col-md-2 ">Powered by <b>Discuz!</b> X2.5</p>
                        <p class="col-md-3 col-md-offset-6">
                            <a href="">Archiver</a>
                            <a href="">论坛首页</a>
                            <a href=""><img src="__IIMG__/qq.png"></a>
                            <a href=""><img src="__IIMG__/toss.gif"></a>
                        </p>

                    </div>
                    <div class="row">
                        <p class="col-md-3">© 2001-2012 Comsenz Inc.</p>
                        <p class="col-md-3 col-md-offset-5"><b>GMT+8</b> ,time :
                            <{:date( "h:i:s")}>
                        </p>
                    </div>
                    <div class="row">
                        <div class="col-md-10 col-md-offset-1" style="margin-top:20px;">
                        </div>
                    </div>
                </div>
                <!-- 引入jQuery -->
                <script src="__JS__/jquery.min.js"></script>
                <!-- bootstrap的JS文件必须放在JQ引入之后! -->
                <script src="__JS__/bootstrap.min.js"></script>
    </body>

</html>